package com.liezh.proxy.dynamicproxy;

/**
 * @author liezh
 * @date 2021-5-26
 */
public class Main {
    public static void main(String[] args) {
        Subject subject = new RealSubject();
        JdkProxy jdkProxy = new JdkProxy(subject);
        Subject proxy = (Subject) jdkProxy.getProxy();
        proxy.operation();

        proxy.sth();
    }
}